package com.jagochan.module.business.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 帖子表
 * </p>
 *
 * @author Jagochan
 * @since 2025-08-13
 */
@Data
@Accessors(chain = true)
@TableName("article")
@Schema(description = "帖子(文章)")
public class Article {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "作者ID(发布人)")
    private Integer userId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "图片")
    private String images;

    @Schema(description = "分享链接")
    private String url;

    @Schema(description = "所属分类ID")
    private Integer categoryId;

    @Schema(description = "所属话题ID")
    private Integer topicId;

    @Schema(description = "分享数")
    private Integer shareCount;

    @Schema(description = "点赞数")
    private Integer dingCount;

    @Schema(description = "踩数")
    private Integer caiCount;

    @Schema(description = "评论数")
    private Integer commentCount;

    @Schema(description = "浏览数")
    private Integer readCount;

    @Schema(description = "收藏数")
    private Integer collectCount;

    @Schema(description = "发布时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

}
